13 / 17

What is Consistent Hashing? How is it used in Distributed Systems?

Consistent Hashing

javascript
  1. 1

    Reduces data movement when cluster membership changes.

  2. 2

    Commonly used in distributed caches and partitioned storage systems.

  3. 3

    Virtual nodes improve distribution and reduce hot spots.

  4. 4

    Replication can assign a key to multiple successive nodes.

  5. 5

    The hash function and node placement influence load distribution.

  6. 6

    Consistent hashing does not automatically provide replication, consistency, or fault tolerance; those are separate system-design concerns.

Difficulty: 5/10

Follow-up Questions

  • Why are virtual nodes needed?
  • How does consistent hashing support replication?
  • What happens when a node fails?